package com.acme.bankapp.apps;

public class BankApplication {

	public static final String SERVER_IP = "localhost";
	public static final int SERVER_PORT = 5555;
	
	public static void main(String[] args) {

		if(args.length!=3){
			ClientApplication application = new ClientApplication(SERVER_IP,SERVER_PORT);
			application.start();
		}else if("-server".equals(args[2])){
			if("-loadbank".equals(args[0])){
				ServerApplication application = new ServerApplication(SERVER_PORT);
				application.start(args[1]);
			}
		}

	}

}
